#include<bits/stdc++.h>
using namespace std;
signed main() {
	int hh, mm;
	scanf("%d:%d", &hh, &mm);

	mm += hh * 60;
	if (mm <= 720) {
		printf("Only %02d:%02d.  Too early to Dang.", hh, mm % 60);
	} else {
		int cnt = (mm - 720) / 60 + ((mm - 720) % 60 != 0);
		while (cnt--) {
			cout << "Dang";
		}
	}
	return 0;
}
